package com.example.demo2.service;

import com.example.demo2.entity.Target;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TargetService {


    //    根据课程目标的ID查询实现课程目标的查询
    Target queryTargetById(int courseTargetId);


//    增加一个课程目标
    int lv_insertTarget(Integer courseTargetId,Integer courseId,String courseTargetShortname,Integer bulumuTarget,String courseTargetContent);
//

    //    根据课程目标ID删除课程目标
    int Lv_deleteTargetById(Integer courseTargetId);
    //    显示所有的课程目标
    List<Target> Lv_selectAllTarget();

    //根据课程目标ID来更新
    int Lv_updateTarget(Target target);

    //    根据课程目标简称模糊搜索
    List<Target> Lv_searchCourseTarget(String courseTargetShortname);
    //查询教学环节详细内容
    List<Target> findTargetContentById(Integer courseId);
    //更新各个课程目标的教学环节、评价方式、权值
    int updateTeacheWayById(Integer courseId, Integer courseTargetNum, String teacheWay, String evaluationWay, String evaluationValue);
    //查询Target表中所有内容
    List<Target> findTargetAllById(Integer courseId);

    List<Target> findTargetContentByName(String courseName);
    //查询评价方式
    List<Target> findEvaluationWayById(Integer courseId);
    //更新期末考试要点
    int updateExamPointById(Integer courseId, Integer courseTargetNum, String examPoint);

    //查询教学环节及详细内容
    List<Target> findTargetContent(Integer courseId);
    //更新教学环节及详细内容
    int updateTargetContent(@Param("courseId") Integer courseId, @Param("courseTarget") String courseTarget, @Param("courseTargetContent") String courseTargetContent);
    //删除教学环节及详细内容
    int deleteTargetContent(@Param("courseId") Integer courseId);


    //查询教学环节及详细内容
    List<Target> findEvaluationContent(Integer courseId);
    //删除教学环节及详细内容
    int deleteEvaluationContent(@Param("courseId") Integer courseId);
    //更新教学环节及详细内容
    int updateEvaluationContent(@Param("courseId") Integer courseId, @Param("courseEvaluation") String courseEvaluation, @Param("courseEvaluationContent") String courseEvaluationContent);


}
